package com.lucas.filter;

import org.springframework.cloud.gateway.filter.GatewayFilterChain;
import org.springframework.cloud.gateway.filter.GlobalFilter;
import org.springframework.core.Ordered;
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;

/**
 * 验证token
 * 登录时,验证用户名密码是否合法,合法调用用户微服务生成token,写入cookie
 * ,并且鞋带邮箱地址重定向欢迎页面;后续请求再来,验证客户端请求cookie是否鞋带token
 * @program: spring_cloud_lagou_homework
 * @author: lucasLu
 **/
public class TokenFilter implements GlobalFilter, Ordered {
    @Override
    public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {
        return null;
    }

    @Override
    public int getOrder() {
        return 0;
    }
}
